#ifndef _UIManager_H_
#define _UIManager_H_

#include <vector>

class Background;
class Button;
class UIManager
{
public:

	UIManager();
	~UIManager();

	bool Create( IDirect3DDevice9 *pkDevice );
	void Update( unsigned int dt );
	void Render();
	void Release();

	void OnMouseMove( int x, int y );
	void OnLButton( bool Down );

	void ButtonReady( int index, bool Draw );
	void ButtonTitle();
	void GameReady();
	void ItemInfo();


	void SetReadyUV( int index, int Num );
	
	int GetStateID();

	void SearchUV( int index, bool Draw );

private:

	int m_iStateID;
	std::vector<Button *> m_pButton;
	IDirect3DDevice9	*m_pkDevice;

	Background	*BgView;
	Background	*ReadyView;
	Background	*ItemView;

	bool m_iFlag;

};



#endif // _UIManager_H_